package com.sk.bilibili.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sk.bilibili.annotation.DefaultValue;
import com.sk.bilibili.bean.interfaces.DiscussAble;
import com.sk.bilibili.bean.interfaces.ForwardAble;
import com.sk.bilibili.bean.interfaces.PlayAble;
import com.sk.bilibili.bean.interfaces.PraiseAble;
import com.sk.bilibili.other.ExtraMap;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
* @author 邵康
* @date 2021/11/23 16:10
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoSet implements PlayAble, PraiseAble, ForwardAble, DiscussAble {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    @TableField(fill = FieldFill.INSERT)
    private Long createDate;
    private Integer memberId;
    @DefaultValue("default/videoSetCover.png")
    private String cover;
    @TableField(exist = false)
    private MultipartFile coverFile;
    private String info;
    private Integer playNum;
    private Integer praiseNum;
    private Integer forwardNum;
    private Integer discussNum;
    private Integer typeId;
    private Integer duration;
    @TableField(exist = false)
    private ExtraMap extra=new ExtraMap();
    // 这3个单独处理不再使用接口
    private Integer coinNum;
    private Integer danmuNum;
    private Integer collectNum;

}
